package com.bjpowerndoe.ylb.web.model.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;


import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class RechargeRecordVO implements Serializable {

    private Integer id;

    /**
     * 充值订单状态（0充值中，1充值成功，2充值失败）
     */
    @JsonIgnore
    private Integer rechargeStatus;

    private String result;

    /**
     * 充值金额
     */
    private BigDecimal rechargeMoney;

    /**
     * 充值时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/shanghai")
    private Date rechargeTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRechargeStatus() {
        return rechargeStatus;
    }

    public void setRechargeStatus(Integer rechargeStatus) {
        this.rechargeStatus = rechargeStatus;
    }

    public String getResult() {
        switch (rechargeStatus){
            case 0:
                result = "充值中";
                break;
            case 1:
                result="成功";
                break;
            case 2:
                result="失败";
                break;
        }
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public BigDecimal getRechargeMoney() {
        return rechargeMoney;
    }

    public void setRechargeMoney(BigDecimal rechargeMoney) {
        this.rechargeMoney = rechargeMoney;
    }

    public Date getRechargeTime() {
        return rechargeTime;
    }

    public void setRechargeTime(Date rechargeTime) {
        this.rechargeTime = rechargeTime;
    }
}